﻿package eu.szemraj.utils {	import flash.display.LoaderInfo;		/**	Utility for providing easy access to HTML embeded FlashVars.				@author Aaron Clinger		@version 09/15/08		@usageNote You must first initialize {@link StageReference} before using this class.	*/	public class FlashVarUtil {						/**			Returns a FlashVar value by key.						@param key: The name of the FlashVar to retrieve.			@return The string value of the FlashVar.			@usageNote You must first initialize {@link StageReference} before using this class.		*/		public static function getValue(key:String, defaultValue:String = "" ):String {						var loaderInfo:LoaderInfo = StageReference.getStage().loaderInfo;			if( loaderInfo.parameters[ key ])				return loaderInfo.parameters[key] as String;			else 			 	return defaultValue;		}	}}